package org.performancetracker.jdbc4;

import java.sql.Connection;
import java.sql.Statement;

/**
 * @author: jaronschut
 */

public class MonitoringStatement extends AbstractMonitoringStatement {

    private final Statement realStatement;
    private final Connection realConnection;

    protected MonitoringStatement(Statement statement, Connection connection) {
        realStatement = statement;
        realConnection = connection;
    }

    /**
     * To override in any subclass.
     *
     * @return
     */
    @Override
    protected Statement getRealStatement() {
        return realStatement;
    }

    /**
     * To override in any subclass.
     *
     * @return
     */
    @Override
    protected Connection getRealConnection() {
        return realConnection;
    }
}
